<%@page import="database.DbNewUser"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!-- Verarbeitende JSP zur registrierung -->  

<jsp:useBean id="Register" class="database.DbNewUser" scope="request" />
<jsp:setProperty name="Register" property="*"/>

<c:set var="test" value="${Register.neuerUser()}" scope="request" />
<c:if test="${test}">
<c:redirect url="../index.jsp?success=1" />
</c:if>
<c:if test="${!test}">
<c:redirect url="../index.jsp?error=2" />
</c:if>